From 1525f6cd45e47c4e9623da234a1d55f862b39498 Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Mon, 7 Nov 2016 14:45:07 -0800 Subject: [PATCH] [search] Remove more dead code This code in SpecialSearch looks to still be around from the days where there was a feature that go would send you to directly to an edit page, rather than showing search results. That feature no longer exists, so remove the related code. Change-Id: If5b064b08a6258bfab31ab8f8b62c1d7283c8912 --- includes/specials/SpecialSearch.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index f301e7c4cd..e7a86774bc 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -234,11 +234,6 @@ class SpecialSearch extends SpecialPage { return; } - # No match, generate an edit URL - $title = Title::newFromText( $term ); - if ( !is_null( $title ) ) { - Hooks::run( 'SpecialSearchNogomatch', [ &$title ] ); - } $this->showResults( $term ); } -- 2.20.1